package com.woniuxy.sportsdaili;

import com.woniuxy.staticdaili.AutoMan;
import com.woniuxy.staticdaili.AutoManImpl;
import com.woniuxy.staticdaili.Jack;

public class Test {
    public static void main(String[] args) {
        AutoMan autoMan=new Jack();
        JdkProxyFactory jdkProxyFactory=new JdkProxyFactory();
        AutoMan autoMan1 = (AutoMan) jdkProxyFactory.createProxyObject(autoMan);
        autoMan1.hit();
        System.out.println("战斗结束");
    }

}
